\documentclass{article}
\usepackage{pgfplots}
\def\axisdefaultwidth{360pt}

\pgfplotsset{
	compat=1.9,
  minor tick num=1,
  samples=2,
  %
  axis x line shift=10pt,
  axis y line shift=10pt,
  axis z line shift=10pt,
  xlabel=xlabel,
  ylabel=ylabel,
}

\begin{document}

\begin{tikzpicture}
	\begin{axis}[
		grid=major]
	\addplot {x};
	\end{axis}
\end{tikzpicture}

\end{document}
